﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Controls/AdminPage.master" AutoEventWireup="true" CodeFile="NewsSub.Add.aspx.cs" Inherits="Pages_Content_NewsSub_Add" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<article>
    <span class="title">Điểm báo</span>
    <ul class="news">
        <asp:Repeater ID="rptNewsSub" runat="server">
        <ItemTemplate>
	    <li>
            <asp:TextBox ID="txtTitle" TextMode="MultiLine" Text='<%#Eval("Title") %>' Width="250px" Height="100px" runat="server"></asp:TextBox>
            <asp:TextBox ID="txtLead" TextMode="MultiLine" Text='<%#Eval("Lead") %>' Width="450px" Height="100px" runat="server"></asp:TextBox>
	        <asp:CheckBox ID="cbxStatus" runat="server"></asp:CheckBox>
            <asp:Label ID="lblNewsSubID" runat="server" Text='<%#Eval("NewsSubID") %>' Visible="false"></asp:Label>
	    </li>
        </ItemTemplate>
        </asp:Repeater>
	    <li>
            <small>Thêm mới điểm báo</small><br />
            <asp:TextBox ID="txtNewsSubTitle" TextMode="MultiLine" Width="250px" Height="100px" runat="server"></asp:TextBox>
            <asp:TextBox ID="txtNewsSubLead" TextMode="MultiLine" Width="450px" Height="100px" runat="server"></asp:TextBox>
            <asp:Button ID="btAdd" runat="server" Text="Thêm mới" OnClick="btAdd_Click" CssClass="button small green" Width="80px" ></asp:Button>
	    </li>
    </ul>
    <p>
        <asp:Button ID="btNewsSubEdit" runat="server" Text="Cập nhật" OnClick="btNewsSubEdit_Click" CssClass="button small green" Width="80px" ></asp:Button>
        <asp:Button ID="btNewsSubDelete" runat="server" Text="Xóa" OnClick="btNewsSubDelete_Click" CssClass="button small red" Width="60px" ></asp:Button>
    </p>
</article>
<ajaxToolkit:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender10" runat="server" TargetControlID="txtNewsSubTitle" WatermarkText="Tiêu đề" />
<ajaxToolkit:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender11" runat="server" TargetControlID="txtNewsSubLead" WatermarkText="Nội dung" />

<article>
    <asp:Label ID="lblTtitle" runat="server" Text="Nội dung bài viết" CssClass="title"></asp:Label>
    <div class="uniform">
	    <dl>
		    <dt><label for="newscontent">Nội dung</label></dt>
		    <dd>
                <asp:TextBox runat="server" ID="ftbContent" TextMode="MultiLine" CssClass="tinymce" Height="450px" Width="100%"></asp:TextBox>
		    </dd>
	    </dl>
    </div>
</article>
     <script type="text/javascript">
         tinymce.init({
             selector: ".tinymce",
             theme: "modern",
             relative_urls: false,
             remove_script_host: false,
             document_base_url: "http://media.fica.vn/",
             plugins: [
         "advlist autolink lists link image charmap print preview hr anchor pagebreak",
         "searchreplace wordcount visualblocks visualchars code fullscreen",
         "insertdatetime media nonbreaking save table contextmenu directionality",
         "emoticons template paste textcolor moxiemanager boxcontent"
             ],
             toolbar1: "newdocument fullpage | bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | styleselect formatselect fontselect fontsizeselect",
             toolbar2: "cut copy paste | searchreplace | bullist numlist | outdent indent blockquote | undo redo | link unlink anchor image media code | inserttime preview | forecolor backcolor",
             toolbar3: "table | hr removeformat | subscript superscript | charmap emoticons | print fullscreen | ltr rtl | spellchecker | visualchars visualblocks nonbreaking template pagebreak restoredraft",

             toolbar_items_size: 'small',
             image_advtab: true
         });
    </script>

</asp:Content>

